package com.example.oa_boot.test.service.impl;

import com.example.oa_boot.test.domain.Dept;
import com.example.oa_boot.test.mapper.DeptMapper;
import com.example.oa_boot.test.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
     DeptMapper deptMapper;
    @Override
    public List<Dept> selectAll() {
        List<Dept> allDept = deptMapper.selectall();
        System.out.println(allDept);
        return  allDept;
    }

    @Override
    public List<Dept> select() {

        return deptMapper.select();
    }

}
